/**
 * @param {HTMLElement} el
 * @returns {string}
 */
export function getElementDisplay(el: HTMLElement): string {
  if (!el) return ''
  try {
    const computed = window.getComputedStyle(el, '')
    return computed.display || ''
  } catch (e) {
    return ''
  }
} 